/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2022-07-26
 * Time: 10:31
 */
public class Test {

    public static void main(String[] args) {
        //Unicode字符集占两个字节--包含ASCIII  中文 英文 等很多其他语言
        char ch='a';
        //JAVA 中char类型占两个字节

        System.out.println(ch);
        //字符集过大，无法正常解析
        System.out.println(Character.MAX_VALUE);
        System.out.println(Character.MIN_VALUE);

    }

    public static void main8(String[] args) {
        byte b=(byte)(127+1);
        //byte a=127+1;
        System.out.println(b);
        System.out.println(Byte.MAX_VALUE);
        System.out.println(Byte.MIN_VALUE);
    }
    public static void main7(String[] args) {
        //short占两个字节
        short a=10;
        System.out.println(a);
        System.out.println(Short.MAX_VALUE);
        System.out.println(Short.MIN_VALUE);
    }
    public static void main6(String[] args) {
        //float 占四个字节  未加f默认为double类型且报错
        float a=4.0f;
        double b=10;
        System.out.println(a);
        System.out.println(Float.MAX_VALUE);
        System.out.println(Float.MIN_VALUE);
        System.out.println(b);
        System.out.println(Double.MAX_VALUE);
        System.out.println(Double.MIN_VALUE);

    }
    public static void main5(String[] args) {
        //长整形 占八个字节
        long a=10;
        System.out.println(10);
        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);
    }
    public static void main4(String[] args) {

        int c;
        //编译报错 无法直接输出一个为初始化得值
        //System.out.println(c);
        int a=2147483647+1;
        int b=-2147483648-1;
        System.out.println(a);
        System.out.println(b);
        System.out.println(Integer.MIN_VALUE-1);
        System.out.println(Integer.MAX_VALUE+1);
    }
    public static void main3(String[] args) {
        //局部变量a为四个字节
        int a=10;
        int b=5;
        System.out.println(10);
        //Integer 为包装类
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);
    }
    public static void main2(String[] args) {
        int a=10;
        System.out.println("jiejiejie");
        System.out.println(10.5);

    }
        public static void main1() {
            int b=10;

        }
}


